package com.fc.mall.dao;

import com.fc.mall.dto.*;
import com.fc.mall.model.OmsOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单自定义查询Dao
 * Created by dobuy on 2018/10/12.
 */
public interface OmsOrderDao {
    /**
     * 条件查询订单
     */
    List<OmsOrder> getList(@Param("queryParam") OmsOrderQueryParam queryParam);

    /**
     * 批量发货
     */
    int delivery(@Param("list") List<OmsOrderDeliveryParam> deliveryParamList);

    /**
     * 获取订单详情
     */
    OmsOrderDetail getDetail(@Param("id") Long id);

    /**
     * 获得OmsOrderItemDetail List
     */
    List<OmsOrderItemDetail> getOrderItemDetails(@Param("queryParam") OmsOrderQueryParam queryParam);

    List<OmsCentCommossion> queryCentCommossionByOrderId(@Param("orderSn") String orderSn);

    /**
     * 统计会员当天，昨天的付款订单数
     * @param filterType  1: 当天， 2： 昨天
     * @param memberId  会员ID
     * @return
     */
    int queryPaymentOrderCount(@Param("filterType") Integer filterType, @Param("memberId") Long memberId);
}
